package com.ch.mobilesha.img;

import android.os.Environment;

import com.ch.mobilesha.common.CommonData;

public class FileManager {

	public static boolean checkSDCard() {
		if (Environment.getExternalStorageState().equals(
				Environment.MEDIA_MOUNTED)) {
			return true;
		} else {
			return false;
		}
	}

	public static String getImgFolderPath() {
		if (checkSDCard()) {
			return Environment.getExternalStorageDirectory() + "/"
					+ CommonData.BASE_DIR + "/." + CommonData.IMAGES;
		}else{
			return null;
		}
	}
}
